package com.cskaoyan.demo.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

/**
 * @Author 远志 zhangsong@cskaoyan.onaliyun.com
 * @Date 2024/6/27 9:29
 * @Version 1.0
 */
@Configuration
//除了controller之外的其他组件交给spring去管理,设置spring扫描的包目录，但是需要将所有的controller组件以及SpringMVC配置类排除在外
@ComponentScan(value = "com.cskaoyan.demo",excludeFilters = {@ComponentScan.Filter({Controller.class, EnableWebMvc.class})})
public class SpringConfig {
}
